﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Domain.Entity;
using Business.Abstract;
using Business.Service;

namespace PresentationMVC.Models
{
    public class JobBookingModel : AbstractModel
    {

        public virtual long SelectedStaffId
        {
            get;
            set;
        }

        public virtual long SelectedCustomerId
        {
            get;
            set;
        }

        public virtual DateTime? From
        {
            get;
            set;
        }

        public virtual DateTime? To
        {
            get;
            set;
        }

        public virtual JobBooking JobBooking
        {
            get;
            set;
        }

        public virtual IList<JobBooking> AllJobBooking
        {
            get;
            set;
        }
        public virtual IList<Status> Statuses
        {
            get
            {
                IStatusService statusSrv = new StatusServiceImpl();
                return statusSrv.GetAllStatus();
            }
        }
        public virtual IList<BookingType> BookingTypes
        {
            get
            {
                IBookingTypeService bookingTypeSrv = new BookingTypeServiceImpl();
                return bookingTypeSrv.GetAllBookingType();
            }
        }
        public virtual IList<Staff> Staffs
        {
            get
            {
                IStaffService staffSrv = new StaffServiceImpl();
                return staffSrv.GetAllStaffs();
            }
        }

        public virtual IList<Customer> Customers
        {
            get
            {
                ICustomerService customerSrv = new CustomerServiceImpl();
                return customerSrv.GetAllCustomers();
            }
        }
    }

   }
